﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FirstGrid.aspx.cs" Inherits="Samples_FirstGrid" %>

<%@ Register src="../dotNetFlexGrid/dotNetFlexGrid.ascx" tagname="dotNetFlexGrid" tagprefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>JQuery FlexiGrid的asp.net完美解决方案：dotNetFlexGrid for asp.net-演示如何快速的建立一个异步的Grid应用 </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>
<body >

    <form id="form1" runat="server">
    <div><h1>dotNetFlexGrid for asp.net-演示如何快速的建立一个异步的Grid应用。</h1></div>
    <script language="javascript">
        function doClientSearch() {
            var txt = document.getElementById("txtName").value;
            if (txt) {
                var extP = [{ name: "String1", value: txt}];
                dotNetFlexGrid1.applyQueryReload(extP);
            }
        }
    </script>
    <div>
    <fieldset title="客户端查询">
        <input id="txtName" type="text" /> <input id="btnSubmit" type="button" value="客户端查询演示"  onclick="doClientSearch();"/>
    </fieldset>
    </div>
    <div>
    <fieldset title="服务端查询">看看
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        <asp:Button ID="Button1" runat="server" Text="服务端查询演示" OnClick="Button1_Click" /></fieldset>
        <br />
    
        <uc1:dotNetFlexGrid ID="dotNetFlexGrid1" runat="server" 
        />
    </div>
    </form>

</body>
</html>
